/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.hazard.om.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hopes.boss.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 危险源实时监控数据
 *
 * @author daijie
 * @date 2023-11-02 15:18:20
 */
@Data
@TableName(value = "haz_rt_data", excludeProperty = "tenantId")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "危险源实时监控数据")
public class HazRtDataEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;


    /**
     * 标识
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "标识")
    private Long id;

    /**
     * 危险源
     */
    @Schema(description = "危险源")
    private Long hazardSourceId;

    /**
     * 监控点
     */
    @Schema(description = "监控点")
    private Long monitorSiteId;

    /**
     * 监控点因子关系标识
     */
    @Schema(description = "监控点因子关系标识")
    private Long monitorFactorId;

    /**
     * 因子编码
     */
    @Schema(description = "因子编码")
    private String factorCode;

    /**
     * 监测数据
     */
    @Schema(description = "监测数据")
    private BigDecimal monitorData;

    /**
     * 数据时间
     */
    @Schema(description = "数据时间")
    private Date dataTime;

    /**
     * 是否超标
     */
    @Schema(description = "是否超标")
    private Boolean alarmFlag;

    /**
     * 超标等级
     */
    @Schema(description = "超标等级")
    private String alarmLevel;

    /**
     * 数据标记
     */
    @Schema(description = "数据标记")
    private String flag;

    /**
     * 机构ID
     */
    @Schema(description = "机构ID")
    private Long orgId;

}